//#region License
///*
//The MIT License

//Copyright (c) 2008 Sky Morey

//Permission is hereby granted, free of charge, to any person obtaining a copy
//of this software and associated documentation files (the "Software"), to deal
//in the Software without restriction, including without limitation the rights
//to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//copies of the Software, and to permit persons to whom the Software is
//furnished to do so, subject to the following conditions:

//The above copyright notice and this permission notice shall be included in
//all copies or substantial portions of the Software.

//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//THE SOFTWARE.
//*/
//#endregion
//using Microsoft.VisualStudio.TestTools.UnitTesting;
//namespace System
//{
//    [TestClass]
//    public class ArrayExTests
//    {
//        [TestMethod]
//        [ExpectedException(typeof(ArgumentNullException))]
//        public void Coalesce_Null_Throws()
//        {
//            ArrayEx.Coalesce<string>(null, null);
//        }

//        [TestMethod]
//        public void Coalesce_TwoNullValues_IsNull()
//        {
//            var value = ArrayEx.Coalesce(null, new string[] { null, null });
//            Assert.IsNull(value);
//        }

//        [TestMethod]
//        public void Coalesce_NullAndNonNullValues_EqualsNonNull()
//        {
//            var value = ArrayEx.Coalesce(null, new string[] { null, "NonNull" });
//            var value2 = ArrayEx.Coalesce(int.MinValue, new int[] { int.MinValue, 1 });
//            Assert.AreEqual("NonNull", value);
//            Assert.AreEqual(1, value2);
//        }

//        [TestMethod]
//        public void MinSkipNull()
//        {
//            var value = ArrayEx.MinSkipNull(int.MinValue, new int[] { int.MinValue, 2, 1 });
//            Assert.AreEqual(1, value);
//        }

//        [TestMethod]
//        public void MinSkipNullT()
//        {
//            var value = ArrayEx.MinSkipNull<int>(int.MinValue, new int[] { int.MinValue, 2, 1 });
//            Assert.AreEqual(1, value);
//        }

//        [TestMethod]
//        public void FindSkipNull_EqualsOne()
//        {
//            var value = ArrayEx.FindSkipNull(int.MinValue, (a, b) => (a > b), new int[] { int.MinValue, 2, 1 });
//            Assert.AreEqual(1, value);
//        }
//    }
//}
